import request from '@/utils/request'

export const emailList = query => {
  return request({
    url:'/oa/email/list',
    method: 'get',
    params: query
  })
}

export const getChart = query => {
  return request({
    url:'/oa/email/chart',
    method: 'get',
    params: query
  })
}

export const sendEmailMsg = data => {
  return request({
    url:'/oa/email/send',
    method: 'post',
    data,
  })
}

export const searchUser = query => {
  return request({
    url:'/oa/email/search',
    method: 'get',
    params: query
  })
}
